package org.su.webadapter.bind;

import java.text.ParseException;

public class ParamBindException extends RuntimeException {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String paramName;

	public String getParamName() {
		return paramName;
	}

	public ParamBindException(String message, String paramName) {
		this(message, null, paramName);
	}

	public ParamBindException(Exception e, String paramName) {
		this(e.getMessage(), e, paramName);
	}

	public ParamBindException(String message, Exception e, String paramName) {
		super("[" + paramName + "]" + message, e);
		this.paramName = paramName;
	}

	public ParamBindException(ParseException e) {
		super(e);
	}
}
